﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Solidi
{
	sealed class FuncDependencyFactory<T> : GenericDependencyFactory
	{
		public override object Create(IDependencyContext context, IDependencyKey key)
		{
			return (Func<T>)(() =>
			{
				return (T)context.Resolve(key);
			});
		}
	}
}
